package com.event.management.backend.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 登录日志查询参数
 */
@Data
@ApiModel(description = "登录日志查询参数")
public class LoginLogQueryDTO {
    
    @ApiModelProperty(value = "用户ID", example = "1")
    private Integer userId;
    
    @ApiModelProperty(value = "开始时间", example = "2023-01-01 00:00:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    
    @ApiModelProperty(value = "结束时间", example = "2023-12-31 23:59:59")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    
    @ApiModelProperty(value = "当前页码", required = true, example = "1")
    private Integer pageNum = 1;
    
    @ApiModelProperty(value = "每页数量", required = true, example = "10")
    private Integer pageSize = 10;
} 